const compression=require('compression')
const express =require('express')
const app=express()
// 一定要把这一行代码写到静态资源托管之前
app.use(compression())
app.use(express.static('./dist'))
app.listen(80,()=>{
    console.log('server running at http://127.0.0.1')
})